#pragma once
#include "Log.hpp"
#include<iostream>
#include<functional>

typedef std::function<int(int,int)>Func;
class Task
{
public:
    Task(){}
    Task(int x,int y,Func callback)
    :_x(x),_y(y)
    ,_func(callback)
    {
        
    }
    void operator()(const std::string& name)
    {
        //logMessage(NORMAL, "");
        _func(_x,_y);
    }
private:
    int _x;
    int _y;
    Func _func;
};
